
    Calculate the actual distance a bus needs to travel when making a right-angled turn between two stops, given the east-west distance (w) and north-south distance (h) between the stops in the city grid. The calculated distance will help optimize bus schedules by providing accurate travel distances when buses must navigate perpendicular street segments.
    

    
import math

def otherside_rightangle(w, h):
    """
    Calculate the actual distance a bus needs to travel when making a right-angled turn between two stops, given the east-west distance (w) and north-south distance (h) between the stops in the city grid. The calculated distance will help optimize bus schedules by providing accurate travel distances when buses must navigate perpendicular street segments.
    

    """
import math

def otherside_rightangle(w, h):
    """
    Calculate the actual distance a bus needs to travel when making a right-angled turn between two stops, given the east-west distance (w) and north-south distance (h) between the stops in the city grid. The calculated distance will help optimize bus schedules by providing accurate travel distances when buses must navigate perpendicular street segments.
    

    """
    s = math.sqrt(w * w + h * h)
    return s