/**
 * Calculates the tax amount based on the given income and tax rate.
 *
 * @param income The total income.
 * @param taxRate The tax rate as a decimal.
 * @return The tax amount based on the income and tax rate.
 */
fun calculateTax(income: Float, taxRate: Float): Float {

    val tax = income * taxRate
    return tax
}
/**
 * Calculates the tax amount based on the given income and tax rate.
 *
 * @param income The total income.
 * @param taxRate The tax rate as a decimal.
 * @return The tax amount based on the income and tax rate.
 */
fun calculateTax(income: Float, taxRate: Float): Float {
/**
 * Calculates the tax amount based on the given income and tax rate.
 *
 * @param income The total income.
 * @param taxRate The tax rate as a decimal.
 * @return The tax amount based on the income and tax rate.
 */
fun calculateTax(income: Float, taxRate: Float): Float {

    val tax = income * taxRate
    return tax
}