I'm trying to make a form that can calculate the cost of travel from distance A to B. I'm using google maps to find the time between the distances. Than calculating the cost in javascript. I'm pretty new to this so I haven't even been able to get the calculating cost part working right. If any has any assistance to offer I'd be greatly appreciative, below is my script. Thanks for any replies.