Auto Calculation of Charges Based on Days in ERPNext

Hello everyone,

I am working on automating the calculation of charges based on the number of days in ERPNext. I want the system to:

  1. Capture the start date and end date.
  2. Automatically calculate the duration in days.
  3. Multiply the duration by a daily rate to compute the total charges.

have you tried subscription process???

No , i want to calculation in purchase invoice