def calc_coord(X, Y, dX, dY, xm_mesa, ym_mesa, xm_pad, ym_pad) -> list:
    """
    Calculate various coordinates for a device.

    >>> calc_coord(1, 1, 1000, 1000, 0, 0, 0, 0)
    [1.0, 1.0, 1.0, 1.0]

    >>> calc_coord(0, 3, 1000, 1000, 500, 700, 500, 500)
    [0.5, 3.5, 0.5, 3.7]

    :return: [X_pad, Y_pad, X_mesa, Y_mesa]
    """
    return [
        X + xm_pad / dX,
        Y + ym_pad / dY,
        X + xm_mesa / dX,
        Y + ym_mesa / dY,
    ]