Calculate ems from px value