def addDegrees(heading, change):
    """
    Calculate a new heading between 0 and 360 degrees
    :param heading: Initial compass heading
    :param change: Degrees to add
    :return: New heading between 0 and 360 degrees
    """
    heading += change
    return heading % 360