getting last payment by date