The beam will also need you not only for the walls themselves, the roof, but also to cover the floor, which is a lot important. Despite the lumber of various configurations that is used, it will not be very difficult to calculate it if you know the corresponding parameters of the building itself.