added a payment sort date for faster calculations