Fixed bug in calculated start date