A simple function to calculate the viewport in ems.