[Home](./index.md) > [bitburner](./bitburner.md) > [ReputationFormulas](./bitburner.reputationformulas.md) > [repFromDonation](./bitburner.reputationformulas.repfromdonation.md)
## ReputationFormulas.repFromDonation() method
Calculate how much rep would be gained.
Signature:
```typescript
repFromDonation(amount: number, player: Player): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| amount | number | Amount of money donated |
| player | [Player](./bitburner.player.md) | Player info from [getPlayer](./bitburner.ns.getplayer.md) |
Returns:
number