/**
 * A nurse needs to calculate the dosage for a medication based on the volume in milliliters (ml) and the concentration in milligrams (mg).
 *
 * The nurse knows that the concentration is indicated on the medication label and that the recommended dosage is 2 mg per ml.
 *
 * The nurse should subtract the calculated dosage from the concentration and return the remaining amount in mg.
 */
fun calculateDosage(ml: Int, mg: Int): Int {

    val dosage = ml * 2  // Calculate the dosage by multiplying the volume in ml by 2 mg/ml
    var remainingAmount = mg  // Assign the initial concentration value (in mg) to the remainingAmount variable

    // Subtract the calculated dosage from the concentration
    remainingAmount -= dosage

    return remainingAmount
}
/**
 * A nurse needs to calculate the dosage for a medication based on the volume in milliliters (ml) and the concentration in milligrams (mg).
 *
 * The nurse knows that the concentration is indicated on the medication label and that the recommended dosage is 2 mg per ml.
 *
 * The nurse should subtract the calculated dosage from the concentration and return the remaining amount in mg.
 */
fun calculateDosage(ml: Int, mg: Int): Int {
/**
 * A nurse needs to calculate the dosage for a medication based on the volume in milliliters (ml) and the concentration in milligrams (mg).
 *
 * The nurse knows that the concentration is indicated on the medication label and that the recommended dosage is 2 mg per ml.
 *
 * The nurse should subtract the calculated dosage from the concentration and return the remaining amount in mg.
 */
fun calculateDosage(ml: Int, mg: Int): Int {

    val dosage = ml * 2  // Calculate the dosage by multiplying the volume in ml by 2 mg/ml
    var remainingAmount = mg  // Assign the initial concentration value (in mg) to the remainingAmount variable

    // Subtract the calculated dosage from the concentration
    remainingAmount -= dosage

    return remainingAmount
}