Roof calculation(2)