/**
 * Calculates the total income by subtracting expenses from each element of the income statement.
 *
 * @param incomeStatement List of income values
 * @param expenses List of corresponding expenses
 * @return List of total income values
 */
fun calculateTotalIncome(incomeStatement: List<Double>, expenses: List<Double>): List<Double> {

    val totalIncome = mutableListOf<Double>()
    for (i in incomeStatement.indices) {
        totalIncome.add(incomeStatement[i] - expenses[i])
    }
    return totalIncome
}
/**
 * Calculates the total income by subtracting expenses from each element of the income statement.
 *
 * @param incomeStatement List of income values
 * @param expenses List of corresponding expenses
 * @return List of total income values
 */
fun calculateTotalIncome(incomeStatement: List<Double>, expenses: List<Double>): List<Double> {
/**
 * Calculates the total income by subtracting expenses from each element of the income statement.
 *
 * @param incomeStatement List of income values
 * @param expenses List of corresponding expenses
 * @return List of total income values
 */
fun calculateTotalIncome(incomeStatement: List<Double>, expenses: List<Double>): List<Double> {

    val totalIncome = mutableListOf<Double>()
    for (i in incomeStatement.indices) {
        totalIncome.add(incomeStatement[i] - expenses[i])
    }
    return totalIncome
}