def pressure_to_elevation(pressure: float, p0: float) -> float:
    """
    Calculate the elevation for a given pressure.
    Args:
        pressure:   The pressure, in hPa (mbars)
        p0:         P0, the pressure at sea level.

    Returns: Elevation in meters

    """
    return (1 - ((pressure / p0) ** 0.190284)) * 145366.45 * 0.3048