URI - 1016 (Distance)

Solution : 

Formula : Time = (input*60)/ (Y-X)