How To Charge Customers for API usage in my Custom Windows Application

Yes this is what i was looking for.
A formula,
Thank you for proving the calculations.