Is there a method by which the conversions can be achieved on the fly by using a mathematical formulae and not using specific area charts?
Medium Answer: Most flight planning software incorporates a True/Magnetic heading conversion system (ForeFlight for example).
Using an electronic flight planning tool like this is probably your best bet if you want an on-the-fly determination made for you.
International Association of Geomagnetism and Aeronomy (now there's a mouthful!) periodically publishes what's known as "International Geomagnetic Reference Field (IGRF)". It's a mathematical model of Earth's geomagnetic field, which you can work from some exceptionally complicated trigonometry (or just look up the coefficients in a table which is what most sane folks do).
If reading text like "Mathematically, the IGRF model consists of the Gauss coefficients which define a spherical harmonic expansion of the magnetic scalar potential." makes your eyes roll back into your head (I was a math nerd and it makes MINE roll back!) using the model is probably not for you.
If your eyes are still focused on this text however, click on through to that link way back at the top of my answer and you'll be rewarded with a formula you can plug into your trusty calculator.