Tax Calculation

Functions responsible for calculating taxes used in the redeem module.

income_tax_calculation(sum_days: int) float[source]

Calculate the income tax rate based on the duration in days.

Parameters:

sum_days (int) – Total days of the operation.

Returns:

Tax rate percentage.

Return type:

float

iof_tax_calculation(sum_days: int) float[source]

Calculate the iof tax rate based on the duration in days.

Parameters:

sum_days (int) – Total days of the operation.

Returns:

Tax rate percentage.

Return type:

float