Calculates the usable screen width and height as well as the margin in order to preserve a particular aspect ration