change end date

@rbran100

The variable name of end date to get the data is wrong, changed it