> For the complete documentation index, see [llms.txt](https://docs.fluxity.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fluxity.finance/features/fee.md).

# Fee

Fluxity API is responsible for maintaining all streams' TTLs.&#x20;

When creating a new stream, the Fluxity contract is responsible for calculating the lifespan of the stream and `transfer_from` that amount from the creator of the stream.

Here's the formula that the contract uses to calculate the fee as Stellar Lumens:

`(end date - now) / 30 days * BASE_XLM_FEE_PER_MONTH`
