def calc_x_for_contact_depth(m, c, contact):
    """Calculate x for contact depth
    Args:
        m: slope from `last_base_slope`
        c: intercept from `c0`
    """
    return 1 / m * (contact - c)