How is Duration time calculated?