We will explain the "Pro-rata Calculation Custom Workflow Action," designed to automate complex amount calculations based on contract or subscription periods—a task often difficult to achieve with HubSpot’s standard features alone.


The purpose of this action is to accurately distribute revenue or expenses that fluctuate based on a specific timeframe (Start Date to End Date) across months or days. By eliminating manual calculation errors, it enables real-time calculation and updates of the figures necessary for revenue recognition and budget management directly within HubSpot.
Click the "+" icon in the HubSpot workflow editor and select "Pro-rata Calculation" from the list of custom actions.
Choose the calculation base from the dropdown menu according to your business requirements:
Map the source data from your HubSpot properties:
Specify the precision of the calculation in the "Decimal Places" field:
Once the action completes, the following items are generated dynamically. Save these to your pre-created custom properties using the "Set property value" action:
If you want to recognize revenue based on monthly contracts, such as monthly subscriptions, "Monthly Proration" is suitable. On the other hand, "Daily Proration" is best when you want to distribute costs equally based on the exact number of days elapsed, such as for ad placement periods or rental fees.
The action automatically determines the number of days in that specific month and performs a pro-rata calculation. For example, if a contract starts on the 15th of a 31-day month, it calculates the ratio for the remaining 17 days (15th–31st) to determine the exact amount. No manual adjustment is needed.
Results are automatically output to the custom properties you specify during setup (e.g., "First Month Amount," "Mid-term Amount," etc.). This allows you to use these calculated figures as axes for reporting or as triggers for secondary workflows.
We can customize this sample to match your specific business requirements.
Book Free ConsultationPut it on Trello!Need a fix for HubSpot, CMS, or GAS? Post it on Trello.
Development Requests Here