adjust query for nextBillingDate Billing Agreements and calculating total monthly in the future