/**
 * This function calculates the amount of tax payable based on the income and tax rate.
 *
 * @param income The total income earned.
 * @param taxRate The tax rate applicable.
 * @return The calculated amount of tax payable.
 */
fun calculateTax(income: Int, taxRate: Float): Int {

    // Calculate the tax payable
    val tax = (income * taxRate).toInt()

    // Return the tax amount
    return tax
}
/**
 * This function calculates the amount of tax payable based on the income and tax rate.
 *
 * @param income The total income earned.
 * @param taxRate The tax rate applicable.
 * @return The calculated amount of tax payable.
 */
fun calculateTax(income: Int, taxRate: Float): Int {
/**
 * This function calculates the amount of tax payable based on the income and tax rate.
 *
 * @param income The total income earned.
 * @param taxRate The tax rate applicable.
 * @return The calculated amount of tax payable.
 */
fun calculateTax(income: Int, taxRate: Float): Int {

    // Calculate the tax payable
    val tax = (income * taxRate).toInt()

    // Return the tax amount
    return tax
}