def calculate_gear_box_temperature(gear_box_heat, starting_temperature,
    equivalent_gear_box_heat_capacity, thermostat_temperature):
    """
    Calculates the gear box temperature not finalized [°C].

    :param gear_box_heat:
        Gear box heat [W].
    :type gear_box_heat: float

    :param starting_temperature:
        Starting temperature [°C].
    :type starting_temperature: float

    :param equivalent_gear_box_heat_capacity:
        Equivalent gear box capacity (from cold start model) [W/°C].
    :type equivalent_gear_box_heat_capacity: float

    :param thermostat_temperature:
        Engine thermostat temperature [°C].
    :type thermostat_temperature: float

    :return:
        Gear box temperature not finalized [°C].
    :rtype: float
    """
    temp = starting_temperature
    temp += gear_box_heat / equivalent_gear_box_heat_capacity
    return min(temp, thermostat_temperature - 5.0)
