from typing import Tuple


def sat_idx_to_in_orbit_idx(sat_idx: int, num_sat_per_orbit: int) -> Tuple[int, int]:
    """
    Compute the satellite index in orbit and orbit index.
    Starting from the satellite index in the constellation.
    Args:
        sat_idx: Index of the satellite in the constellation.
        num_sat_per_orbit: Total number of satellites in each orbit of the
            constellation.
    Returns:
        (int, int): Index of the satellite inside its orbit, index of the
            satellite's orbit.
    """
    if num_sat_per_orbit < 1:
        raise ValueError
    sat_idx_in_orbit = sat_idx % num_sat_per_orbit
    orbit_idx = sat_idx // num_sat_per_orbit
    return sat_idx_in_orbit, orbit_idx