added calculation for Beds