/**
 * Calculate the total income by subtracting the total expenses from the total incomes.
 *
 * @param expenses A list of expenses.
 * @param incomes A list of incomes.
 * @return The total income.
 */
fun calculateTotalIncome(expenses: List<Float>, incomes: List<Float>): Float {

    val totalExpenses = expenses.sum()
    val totalIncomes = incomes.sum()
    
    val totalIncome = totalIncomes - totalExpenses
    
    return totalIncome
}
/**
 * Calculate the total income by subtracting the total expenses from the total incomes.
 *
 * @param expenses A list of expenses.
 * @param incomes A list of incomes.
 * @return The total income.
 */
fun calculateTotalIncome(expenses: List<Float>, incomes: List<Float>): Float {
/**
 * Calculate the total income by subtracting the total expenses from the total incomes.
 *
 * @param expenses A list of expenses.
 * @param incomes A list of incomes.
 * @return The total income.
 */
fun calculateTotalIncome(expenses: List<Float>, incomes: List<Float>): Float {

    val totalExpenses = expenses.sum()
    val totalIncomes = incomes.sum()
    
    val totalIncome = totalIncomes - totalExpenses
    
    return totalIncome
}