working calculated payment on parse