created the trip calculator