/**
 * Given the revenue, expenses, and tax rate, calculate the net profit of a business.
 *
 * @param revenue Total revenue generated by the business.
 * @param expenses Total expenses incurred by the business.
 * @param taxRate Tax rate in percentage.
 * @return Net profit after deducting expenses and taxes.
 *
 * Example:
 * calculateProfit(100000.0, 70000.0, 15.0) // Output: 12750.0
 */
fun calculateProfit(revenue: Double, expenses: Double, taxRate: Double): Double {

    val netProfit = revenue - expenses
    val taxAmount = (taxRate / 100) * netProfit
    return netProfit - taxAmount
}
/**
 * Given the revenue, expenses, and tax rate, calculate the net profit of a business.
 *
 * @param revenue Total revenue generated by the business.
 * @param expenses Total expenses incurred by the business.
 * @param taxRate Tax rate in percentage.
 * @return Net profit after deducting expenses and taxes.
 *
 * Example:
 * calculateProfit(100000.0, 70000.0, 15.0) // Output: 12750.0
 */
fun calculateProfit(revenue: Double, expenses: Double, taxRate: Double): Double {
/**
 * Given the revenue, expenses, and tax rate, calculate the net profit of a business.
 *
 * @param revenue Total revenue generated by the business.
 * @param expenses Total expenses incurred by the business.
 * @param taxRate Tax rate in percentage.
 * @return Net profit after deducting expenses and taxes.
 *
 * Example:
 * calculateProfit(100000.0, 70000.0, 15.0) // Output: 12750.0
 */
fun calculateProfit(revenue: Double, expenses: Double, taxRate: Double): Double {

    val netProfit = revenue - expenses
    val taxAmount = (taxRate / 100) * netProfit
    return netProfit - taxAmount
}