> For the complete documentation index, see [llms.txt](https://cetus-1.gitbook.io/cetus-developer-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cetus-1.gitbook.io/cetus-developer-docs/developer/via-sdk-v2/sdk-modules/cetusprotocol-xcetus-sdk/calculates-the-redeem-number.md).

# 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)
```
