def window_width(g_core: float, t_in: float, t_out: float, g: float, t_r: float, g_r: float) -> float:
    """
    is the calculated winding width if there

    x g_core - is the distance between the core and the inner winding in [mm]
    x t_in   - is the thickness of the inner winding  in [mm]
    x t_out  - is the thickness of the outer winding  in [mm]
    x g is   - is the main gap in [mm]
    x t_r    - is the width of the regulating winding in [mm]
    x g_r    - is the distance between the outer winding and the regulating winding [mm]

    g is considered as a phase distance at the end of the windings
    """

    return round(g_core + t_in + t_out + g + t_r + g_r + g, 1)