Fix wrong date calc