How to calculate subscription amount for paypal