This plugin get the distance of the source and the destination address with the help of google map api and then apply the appropriate rate. This plugin uses ajax functionality
Use shortcode in anywhere in your pages, posts or widget. [ratecalculator]