the distance calculation is from the text box where user will type anything
code is formated and icalender gem is addded