Trying to build a form with distance calculator