Added distance by duration method

Added duration method