---
title: "Cost calculation formulas"
canonical: "https://support.appfire.com/space/SPM/1918832405/Cost%20calculation%20formulas"
format: markdown
---
| **Contents:**<br>> Macro (toc) |
| --- |

Here, you can find the formulas used for the cost calculations in the [Financials module](https://appfire.atlassian.net/wiki/spaces/SPM/pages/1918404223).

![cost-calculation.png](media://65e34a32-8b61-4572-ab22-75f49f79d22f)

## Total cost

| **Rate applied** | **Formula** | **Required settings** |
| --- | --- | --- |
| Box rate | Remaining estimate:<br>`sum of (box hourly rate) * task workload hours `<br>`for each task in a period`<br>[Story Points](https://appfire.atlassian.net/wiki/spaces/SPM/pages/1918506126):<br>`sum of (box hourly rate) * Story Points for open tasks in a period * SP conversion ratio * AVG # working hours per day)` | 1. Box hourly rate
2. Tasks: estimates
3. Tasks: start or end date (at least one within the calculation period). |
| Team rates | Remaining estimate:<br>`sum of (team hourly rate) * task workload hours in a period `<br>`for each task in a period`<br>`and for each team`<br>[Story Points](https://appfire.atlassian.net/wiki/spaces/SPM/pages/1918506126):<br>`sum of (team hourly rate) * Story Points for open tasks in a period * SP conversion ratio * AVG # working hours per day)`<br>`for each team` | 1. Team hourly rates.
2. Team allocation to box.
3. Tasks: estimates.
4. Tasks: start or end date (at least one within the calculation period).
5. Task - team assignment. |

## Actual cost

| Rate applied | **Formula** | **Required inputs** |
| --- | --- | --- |
| Box rate | Time Spent:<br>`sum of (time spent * hourly rate)`<br>[Story Points](https://appfire.atlassian.net/wiki/spaces/SPM/pages/1918506126):<br>`sum of (box team rate) * (Story Points for completed tasks in a period * SP conversion ratio * AVG # of working hours per day)` | 1. Box hourly rate.
2. Tasks: time spent OR story points estimates.
3. Tasks: start or end date (at least one within the calculation period) |
| Team rates | Time Spent:<br>`sum of (time spent * hourly rate)`<br>[Story Points](https://appfire.atlassian.net/wiki/spaces/SPM/pages/1918506126):<br>`sum of (team rate) * (Story Points for completed tasks in a period * SP conversion ratio * AVG # of working hours per day)`<br>`for each team` | 1. Team hourly rates.
2. Team allocation to box.
3. Tasks: time spent OR story points estimates.
4. tasks: start or end date (at least one within the calculation period)
5. Task-team assignment. |

## Remaining cost

Total cost - Actual cost = Remaining cost