12 Asana Formula Examples: Track Task Duration, Budgets, Costs & More
- Richard Sather

- Jan 9, 2025
- 7 min read
Updated: Apr 17, 2025

When working with formulas in Asana, knowing how to structure them correctly can significantly improve efficiency and accuracy in your workflows. Whether you're tracking project durations, budgets, or tax calculations, Asanaās formula fields allow you to automate key metrics with ease.
This post highlights practical Asana Formula ExamplesĀ you can use across real-world scenarios ā helping you transform Asana into a smart, data-driven workspace.
Asana offers two different ways to enter formulas:
Basic Formula EditorĀ ā This allows for straightforward calculations using field names and mathematical operators.
Advanced EditorĀ ā This uses variable placeholdersĀ (e.g., [[$DUE_DATE]], [[$ACTUAL_TIME]]) to reference Asanaās built-in fields, making it more flexible for automating calculations based on dates, times, and other system values.
In this guide, weāll walk through some of the most useful Asana Formula ExamplesĀ ā covering everything from task duration and budgeting to cost calculations with discounts and tax. Letās dive in!
Asana Formula Examples for Time, Budget, and Cost Automation
Task Duration
Prerequisites:
Every task has both a Start DateĀ and a Due DateĀ set.
1.1: Task Duration in Days
((Due date-Start date)/1440)+1 = Duration Advanced Editor Version:
(( [[$DUE_DATE]] - [[$STARTED_AT]] ) / 1440) + 1What it does:
Calculates the total number of daysĀ a task will take.
Divides by 1440Ā (the number of minutes in a day).
Adds 1Ā so that a task covering only one day still counts as 1 day.
1.2: Task Duration in Hours (with decimals)
((Due date - Start date) + 0) / 60Advanced Editor Version:Ā
( ( [[$DUE_DATE]] - [[$STARTED_AT]] ) + 0 ) / 60What it does:
Converts the task duration into hoursĀ (including decimals).
Divides by 60Ā to convert minutes into hours.
The +0Ā ensures the calculation runs correctly (it does not change the value).
1.3: Task Duration in Whole Hours (No Decimals)
((Due date - Start date) / 1440) + 1 * 24Advanced Editor Version:
( ( [[$DUE_DATE]] - [[$STARTED_AT]] ) / 1440 + 0 ) * 24What it does:Ā
Calculates the total hoursĀ a task will take, but without decimals.
Uses 1440Ā (minutes in a day) to determine full-day durations.
Multiplies by 24Ā to convert days into whole hours.
1.4: Task Duration in Workdays (Decimals)
((Actual time) + 0) / 60 / 7Advanced Editor Version:Ā
( [[$ACTUAL_TIME]] + 0 ) / 60 / 7What it does:
Converts actual time loggedĀ into workdays.
Divides by 60Ā to get hours.
Further divides by 7Ā (assuming a 7-hourĀ workday).
Tip:
If a task only has a Due Date (no Start Date),Ā the formulas will not correctly display "1 day."
Workaround: Always enter a Start DateĀ (even if itās the same as the Due Date).
Project Duration in days (for Portfolios)
Prerequisites:
Your projects must have both a Start DateĀ and an End Date.
ā ļø In Portfolios, the Due Date is referred to as āDateā.
1.1 Project Duration in Days
0 + (Date - Start Date) / 1440Advanced Editor Version:
0 + ( [[$DATE]] - [[$STARTED_AT]] ) / 1440What it does:
Calculates the total project duration in days.
Divides by 1440Ā to convert minutes into days.
The +0Ā ensures the calculation remains valid.
1.2 Displaying Project Duration in Weeks & Days
The native āDurationāĀ field in PortfoliosĀ only shows total days. This method improves readability by breaking it into weeks and days.
Date - Start DateProject Daily/Weekly Budget (for Portfolios)
Prerequisites:
Your projects must have both a Start DateĀ and an End Date.
The āDateāĀ field in your PortfolioĀ should be populated.
Your project includes an āEstimated BudgetāĀ field (set as a currency-type number).
2.1 Calculating the Daily Budget
Estimated budget / ((Date - Start Date) / 1440)What it does:
Divides the total estimated budgetĀ by the total project duration in days.
1440Ā converts minutes into days.
Provides an estimated daily spend rate.
2.2 Calculating the Weekly Budget
Estimated budget / ((Date - Start Date) / 1440) * 7What it does:
Uses the daily budget formulaĀ and multiplies it by 7Ā to get the weekly budget.
The 7Ā represents a full week, but you can replace it with 5Ā if calculating based on a workweek.
Remaining Project Budget (for Portfolios)
Estimated budget - Actual spentPrerequisites:
Your projects must have an āEstimated BudgetāĀ field (set as a currency-type number).
Your projects must also have an āActual SpentāĀ field (set as a currency-type number).
Setting the Estimated Budget Based on the Daily Budget (for Portfolios)
Daily budget * (Date - Start Date) / 1440Prerequisites:
Your projects must have both a Start DateĀ and an End Date.
The āDateāĀ field in your PortfolioĀ should be populated.
Your project includes a āDaily BudgetāĀ field (set as a currency-type number).
Tip:
To ensure the Estimated BudgetĀ retains accurate decimal values, set the āDaily BudgetāĀ currency field to two decimal places.
Converting Story Points to Estimated Hours
Story Points * 8Prerequisites:
Your project must have a āStory PointsāĀ custom field (set as a number field).
What it does:
Multiplies Story PointsĀ by 8Ā (assuming 1 Story Point = 8 hours, or one full workday).
Provides an estimated number of hoursĀ required for a task based on Story Points.
Tip:
To ensure the Estimated HoursĀ retains accurate decimal values, set the āStory PointsāĀ number field to two decimal places.
Converting Story Points to Hours Remaining
(Story Points * 8) - (Actual Time / 60)Prerequisites:
Your project must have a āStory PointsāĀ custom field (set as a number field).
You must be using Asanaās native āActual TimeāĀ field.
What it does:
Multiplies Story PointsĀ by 8Ā (assuming 1 Story Point = 8 hours, or one full workday).
Converts āActual TimeāĀ (stored in minutes) into hoursĀ by dividing by 60.
Subtracts the actual logged timeĀ from the estimated hours to determine the remaining hours.
Tip:
To ensure the Estimated Hours RemainingĀ retains accurate decimal values, set the āStory PointsāĀ number field to two decimal places.
Calculating Cost Based on Hourly Rate and Actual Time
Hourly Rate * (Actual Time / 60)Prerequisites:
Your project must have a āHourly RateāĀ custom field (set as a currency-type number field).
You must be using Asanaās native āActual TimeāĀ field.
What it does:
Converts āActual TimeāĀ (stored in minutes) into hoursĀ by dividing by 60.
Multiplies the Hourly RateĀ by the total logged hoursĀ to determine the cost of work done.
Tip:
You do notĀ need to add two decimal placesĀ to the āHourly RateāĀ field, as the resulting currency will already be formatted to two decimal places.
Calculating Total Cost Including Tax
(Hourly Rate * (Actual Time / 60)) * 1.24Prerequisites:
You must have a āHourly RateāĀ custom field (set as a currency-type number field).
You must be using Asanaās native āActual TimeāĀ field.
What it does:
Converts āActual TimeāĀ (stored in minutes) into hoursĀ by dividing by 60.
Multiplies the Hourly RateĀ by the total logged hoursĀ to determine the base cost.
Applies a 24% taxĀ by multiplying by 1.24Ā (adjust the multiplier for different tax rates).
Tip:
You do notĀ need to add two decimal placesĀ to the āHourly RateāĀ field, as the resulting currency will already be formatted to two decimal places.
Calculating the Value of Added Tax (VAT)
(Hourly Rate * (Actual Time / 60)) * 0.24Prerequisites:
Any formula that includes a currency-type number fieldĀ (e.g., Hourly Rate, Cost, or Total Cost).
This formula calculates only the tax amount, separate from the total cost
Tip:
You do notĀ need to add two decimal placesĀ to the āHourly RateāĀ field, as the resulting currency will already be formatted to two decimal places.
Calculating Total Cost with Quantity, Discount, and Tax
Prerequisites:
A āCost per ItemāĀ custom field (set as a currency-type number field).
A āQuantityāĀ custom field (set as a number field).
At least one of these fieldsĀ should be set to two decimal placesĀ for accuracy.
11.1 Calculating Cost with Discount Applied
Example with 10% Discount):
(Cost per Item * Quantity) * 0.9What it does:
Multiplies the cost per itemĀ by the quantityĀ to get the total price.
Applies a discountĀ by multiplying by 0.9Ā (representing a 10% discount).
Use 0.5Ā for a 50% discount.
Use 0.1Ā for a 90% discount.
11.2 Calculating the Value of Added Tax After Discount
(Cost per Item * Quantity) * 0.9 * 0.24What it does:
Uses the discounted totalĀ from the first formula.
Multiplies by 0.24Ā (representing 24% tax).
Returns only the tax amountĀ added after the discount.
11.3 Calculating the Final Cost Including Tax After Discount
Formula:
(Cost per Item * Quantity) * 0.9 * 1.24What it does:
Uses the discounted totalĀ from the first formula.
Multiplies by 1.24Ā (representing the total cost including 24% tax).
Returns the final price after discount and tax.
Tip:
To ensure the final costĀ retains accurate decimal values, set the āCost per ItemāĀ currency field to two decimal places.
Calculating Total Cost Based on Area, Discount, and Tax
Example with 10% Discount:
(Cost per Coverage * Area) * 0.9Prerequisites:
A āCost per CoverageāĀ custom field (set as a currency-type number field).
An āAreaāĀ custom field (set as a number field, representing sqft or m²).
At least one of these fieldsĀ should be set to two decimal placesĀ for accuracy.
What it does:
Multiplies the cost per coverage unitĀ by the area sizeĀ to determine the base cost.
Applies a discountĀ by multiplying by 0.9Ā (representing a 10% discount).
Use 0.5Ā for a 50% discount.
Use 0.1Ā for a 90% discount.
Tip:
Remove any custom labelsĀ (such as āsqftā or ām²ā) from the āAreaāĀ field.
Ensure the āCost per CoverageāĀ field is a currency-type fieldĀ so the resulting formulas display correctly.
Wrapping Up: Make the Most of These Asana Formula Examples
By leveraging these Asana Formula Examples, you can streamline calculations, automate data tracking, and reduce manual effort across your projects. Whether you're managing task durations, budgets, or resource planning, these formulas turn Asana into a powerful, data-driven tool.
When implementing these formulas, remember to:
ā Choose the right formula editorĀ (Basic or Advanced) based on your needs.
ā Set up prerequisite fields correctlyĀ to ensure accurate calculations.
ā Adjust tax rates, work hours, or discount values to match your organizationās requirements.
With these formulas in place, your Asana projects will run smoother, smarter, and more efficientlyāgiving you more time to focus on meaningful work. š
Got a formula you love using in Asana? Or a use case youād like help with? Let me know in the comments ā Iād love to hear how youāre using formulas!
P.S. This blog post is adapted from a forum post I originally shared here. If youāre active in the community, feel free to join the conversation there too!



Comments