Quality indicator for monitoring hospital perfomance

1, How to calculate number of in patients days in a given month
2, How to calculate available bed days in that month