[Home](./index.md) > [bitburner](./bitburner.md) > [HacknetServersFormulas](./bitburner.hacknetserversformulas.md) > [hashUpgradeCost](./bitburner.hacknetserversformulas.hashupgradecost.md)
## HacknetServersFormulas.hashUpgradeCost() method
Signature:
```typescript
hashUpgradeCost(upgName: number, level: number): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| upgName | number | |
| level | number | |
Returns:
number