Magnetic variation, or magnetic declination, is shown on paper and raster charts, but can also be calculated using the World Magnetic Model. C source code for any platform is available at:
http://www.ngdc.noaa.gov/geomag/WMM/soft.shtml
For Windows OS, compilations with a graphical user interface (GUI) are available at: