Create schedule, getStartDate method: return current date if max periods
end date less than current date.