import math


def calculate_border_dimensions(width, height):
    """
    For a given width and height of the game grid, this method calculates the dimensions of the border surrounding the cell.
    The magic numbers correspond to the proportions of the 2048 border in the actual game.
    :param width: The width of the grid
    :param height: The height of the grid
    :return: height and width of the grid border
    """
    return int(math.ceil((15.0 / 500) * height)), int(math.ceil((15.0 / 500) * width))