Got first date and last date working