# Calculates the redeem number

&#x20;Calculates the redeem number for the specified amount and lock day

#### Function Parameters

* amount\_input: the number of tokens that can be redeemed
* lock\_day: the number of days the tokens will be locked

```typescript
const lock_day = 15
const amount_input = 20000

const amount = await sdk.XCetusModule.redeemNum(amount_input, lock_day)
```
