Use ceiling instead of floor to calculate frame