To calculate egress in a stairwell, you need to consider the occupancy load, the width of the stairs, and the stairs' slope. Here's a JavaScript function that calculates the egress in a stairwell based on these factors:
index.tsx1202 chars46 lines
This function takes three arguments: occupancyLoad
, width
, and slope
, which are the occupancy load of the area, the width of the stairs, and the slope of the stairs, respectively.
The function first calculates the egress rate based on the occupancy load, which is multiplied by 0.3. Then, the function calculates the available width factor and slope factor based on the width and slope of the stairs. These factors are used to calculate the total egress rate, which is the final output of the function.
You can call this function with appropriate values for occupancyLoad
, width
, and slope
to calculate the egress rate in a stairwell.
gistlibby LogSnag