def calculate_capacities(volume, temp_h, temp_c, heat_capacity=4195.52,
    density=971.803):
    """
    Calculates the nominal storage capacity, minimum
    and maximum storage level of a stratified thermal storage.

    .. calculate_capacities-equations:

    :math:`Q_N = V \\cdot c \\cdot \\rho \\cdot \\left( T_{H} - T_{C} \\right)`

    Parameters
    ----------
    volume :numeric
        Volume of the storage [m3]

    temp_h : numeric
        Temperature of hot storage medium [deg C]

    temp_c : numeric
        Temperature of cold storage medium [deg C]

    heat_capacity: numeric
        Average specific heat capacity of storage medium [J/(kg*K)]
        Default values calculated with CoolProp for a temperature of 80 °C
        as a simplifying assumption

    density : numeric
        Average density of storage medium [kg/m3]
        Default values calculated with CoolProp for a temperature of 80 °C
        as a simplifying assumption

    Returns
    -------
    nominal_storage_capacity : numeric
        Maximum amount of stored thermal energy [MWh]

    """
    nominal_storage_capacity = volume * heat_capacity * density * (temp_h -
        temp_c)
    nominal_storage_capacity *= 1 / 3600
    nominal_storage_capacity *= 1e-06
    return nominal_storage_capacity
