/**
 * This function calculates the remaining budget by subtracting the spent budget from the marketing budget,
 * using the '!=' operator and the minus assignment operator.
 *
 * @param marketingBudget The initial marketing budget.
 * @param spentBudget The amount spent from the marketing budget.
 * @return The remaining budget after subtracting the spent budget.
 *
 * Example:
 * calculateBudget(10000.0, 2500.0) // Output: 7500.0
 */
fun calculateBudget(marketingBudget: Double?, spentBudget: Double): Double? {

    // Check if the marketing budget is not equal to null
    if (marketingBudget != null) {
        // Subtract the spent budget from the marketing budget using the minus assignment operator
        return marketingBudget - spentBudget
    }
    return null // Return null if marketing budget is null
}
/**
 * This function calculates the remaining budget by subtracting the spent budget from the marketing budget,
 * using the '!=' operator and the minus assignment operator.
 *
 * @param marketingBudget The initial marketing budget.
 * @param spentBudget The amount spent from the marketing budget.
 * @return The remaining budget after subtracting the spent budget.
 *
 * Example:
 * calculateBudget(10000.0, 2500.0) // Output: 7500.0
 */
fun calculateBudget(marketingBudget: Double?, spentBudget: Double): Double? {
/**
 * This function calculates the remaining budget by subtracting the spent budget from the marketing budget,
 * using the '!=' operator and the minus assignment operator.
 *
 * @param marketingBudget The initial marketing budget.
 * @param spentBudget The amount spent from the marketing budget.
 * @return The remaining budget after subtracting the spent budget.
 *
 * Example:
 * calculateBudget(10000.0, 2500.0) // Output: 7500.0
 */
fun calculateBudget(marketingBudget: Double?, spentBudget: Double): Double? {

    // Check if the marketing budget is not equal to null
    if (marketingBudget != null) {
        // Subtract the spent budget from the marketing budget using the minus assignment operator
        return marketingBudget - spentBudget
    }
    return null // Return null if marketing budget is null
}