Pass year, number of days back in delegate method
Replaced float and int with CGFloat and NSInteger respectively