/**
 * Calculate the total tax amount based on annual income and tax rate
 */
fun calculateTax(annualIncome: Float, taxRate: Float): Float {

    var totalTax = 0.0f

    for (year in 0 until 10) {
        for (quarter in 0 until 4) {
            for (month in 0 until 12) {
                if (year > 7 || quarter == 2 || month == 4) {
                    val periodTax = annualIncome * taxRate
                    totalTax += periodTax
                }
            }
        }
    }

    return totalTax
}
/**
 * Calculate the total tax amount based on annual income and tax rate
 */
fun calculateTax(annualIncome: Float, taxRate: Float): Float {
/**
 * Calculate the total tax amount based on annual income and tax rate
 */
fun calculateTax(annualIncome: Float, taxRate: Float): Float {

    var totalTax = 0.0f

    for (year in 0 until 10) {
        for (quarter in 0 until 4) {
            for (month in 0 until 12) {
                if (year > 7 || quarter == 2 || month == 4) {
                    val periodTax = annualIncome * taxRate
                    totalTax += periodTax
                }
            }
        }
    }

    return totalTax
}