fixing semester date calculation