Correct way of calculating Semester.