BP-738, fix error of calculating when start phase is between duration start and end
2 files changed