adding more functionlity for calculating occupancy parametars