# Cost Reset

Resetting cost is recommended in the following situations,

* The Price for a meter is changed in the middle of a billing cycle but that needs to be reflected from the beginning of a billing cycle
* Subscription is added to billing lately in the middle of the billing cycle but usage is already collected from the Usage Source for the subscription
* When the cost needs to be calculated for the previous billing cycles during a new installation (applicable for the Usage sources that provide the old data). By default, the cost is calculated starting the current billing cycle.

{% hint style="danger" %}
When the cost is reset, the usage is reprocessed based on the current meters from the month selected.
{% endhint %}

To reset the cost follow the below steps,

* Navigate to Reset Page in the Admin portal which is under Billing -> Monitoring
* Choose the month from which the usage cost must be reset
* Click the 'Reset' button

![](https://2861565768-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LoVCDjvSJF03p2a5huX%2F-MGmp_9stLuiLFXSDSDM%2F-MGmqGVjVi5m-kHhtm15%2Fimage.png?alt=media\&token=a35a20ad-b4ae-43bb-aeea-13d60f78da79)

{% hint style="info" %}
Expect reset to take up to 20 mins and cost recalculation to take 1 hour. This can be even higher when a large amount of the usage data is involved. During this time, the cost shown in the dashboard and reports is not up-to-date.
{% endhint %}

* Use below SQL command against Billing Database to check the Reset operation. Result Status should 200 for all the operations.

```sql
select * from Operations with (nolock) where DeploymentId = (select Top 1 DeploymentId from Deployments with (nolock) order by CreatedOn desc)
```
