Bed Occupancy rate in Hospital. Code to add this calci to your website. Just copy and paste the below code to your webpage where you want to display this calculator. Occupancy rate = Total number of inpatient days for a given period x 100 / Available beds x Number of days in the period.