Calculates walking and driving time and dismisses keyboard