def axis_converter(total_axis: int, axis: int):
    """
    Calculate axis using `total_axis`.
    For axis less than 0, and greater than 0.

    Parameters
    ----------
    total_axis : int
        Total axis num.
    axis : int
        Current axis num.

    Returns
    -------
    int
        Calculated current axis.
    """
    if axis < 0:
        return total_axis + axis
    else:
        return axis