/**
 * Calculates the overall duration in hours for a given list of cases and their individual durations.
 *
 * @param caseList List of cases and their durations in minutes.
 * @param hourlyRate The hourly rate of a lawyer.
 * @return The overall duration in hours for all the cases combined.
 */
fun calculateOverallDuration(caseList: List<Int>, hourlyRate: Double): Double {

    var overallDuration = 0.0
    
    // Loop through each case duration
    for (duration in caseList) {
        overallDuration += duration / 60.0  // Convert duration from minutes to hours
    }
    
    // Calculate the overall duration in hours
    // Finish the code below
    
    return "%.2f".format(overallDuration).toDouble()  // Round the result to two decimal places
}
/**
 * Calculates the overall duration in hours for a given list of cases and their individual durations.
 *
 * @param caseList List of cases and their durations in minutes.
 * @param hourlyRate The hourly rate of a lawyer.
 * @return The overall duration in hours for all the cases combined.
 */
fun calculateOverallDuration(caseList: List<Int>, hourlyRate: Double): Double {
/**
 * Calculates the overall duration in hours for a given list of cases and their individual durations.
 *
 * @param caseList List of cases and their durations in minutes.
 * @param hourlyRate The hourly rate of a lawyer.
 * @return The overall duration in hours for all the cases combined.
 */
fun calculateOverallDuration(caseList: List<Int>, hourlyRate: Double): Double {

    var overallDuration = 0.0
    
    // Loop through each case duration
    for (duration in caseList) {
        overallDuration += duration / 60.0  // Convert duration from minutes to hours
    }
    
    // Calculate the overall duration in hours
    // Finish the code below
    
    return "%.2f".format(overallDuration).toDouble()  // Round the result to two decimal places
}