def angle_calculator(angle: int) -> float:
    """Calculate the duty cycle of the servo motor from an angle.

    Parameters
    ----------
    angle : int
        The angle of the camera between 0° to 180°
        If the value is out of range, a modulo of 180° will be apply

    Returns
    -------
    `float`
        The Duty cycle for the servo motor
    """
    return 1.0 / 18.0 * (angle % 180) + 2