/**
 * Calculates the total liabilities of a company based on its account balance.
 *
 * @param accountBalance A map representing the account balance of the company,
 *                       with the keys 'payables', 'loans', and 'tax_payable',
 *                       and their respective values as positive integers.
 * @return The total liabilities of the company as a floating-point number.
 */
fun calculateTotalLiabilities(accountBalance: Map<String, Int>): Double {

    return (accountBalance["payables"] ?: 0) + (accountBalance["loans"] ?: 0) + (accountBalance["tax_payable"] ?: 0).toDouble()
}
/**
 * Calculates the total liabilities of a company based on its account balance.
 *
 * @param accountBalance A map representing the account balance of the company,
 *                       with the keys 'payables', 'loans', and 'tax_payable',
 *                       and their respective values as positive integers.
 * @return The total liabilities of the company as a floating-point number.
 */
fun calculateTotalLiabilities(accountBalance: Map<String, Int>): Double {
/**
 * Calculates the total liabilities of a company based on its account balance.
 *
 * @param accountBalance A map representing the account balance of the company,
 *                       with the keys 'payables', 'loans', and 'tax_payable',
 *                       and their respective values as positive integers.
 * @return The total liabilities of the company as a floating-point number.
 */
fun calculateTotalLiabilities(accountBalance: Map<String, Int>): Double {

    return (accountBalance["payables"] ?: 0) + (accountBalance["loans"] ?: 0) + (accountBalance["tax_payable"] ?: 0).toDouble()
}