import math


def calc_angle(asteroid1, asteroid2):
    """Calculates the angle in degress from asteroid1 to asteroid2
    up = 0, angle increases clockwise
    """
    x1, y1 = asteroid1
    x2, y2 = asteroid2
    if x1 == x2:
        if y2 < y1:
            return 0
        return 180
    dx = x2 - x1
    dy = y1 - y2
    angle = math.degrees(math.atan2(dy, dx)) - 90
    angle = 360 - angle
    if angle >= 360:
        angle = angle - 360
    return angle