How to get number of days between two date in SQl Server? : I need to get number of days between 2 date from history booking room from one customer in SQLServer. in that data that have 3 status(in, stay and out)

#record :#
id | room | status | date<br/>
1  |     A |     In |      2018-01-10<br/>
2  |   A   |   Stay |    2018-01-11<br/>
3  |   A   |   out  |   2018-01-12<br/>
4  |   B   |   In   |   2018-01-12<br/>
5  |   B   |   Stay |   2018-01-13<br/>
6  |   B   |   Out  |   2018-01-14<br/>
7  |   A   |   In   |   2018-01-14<br/>
8  |   A   |   Stay |   2018-01-15<br/>
9  |   A   |   Stay |   2018-01-16<br/>
10 |   A   |   Out  |   2018-01-17<br/>

I expect the result for that customer, number of days in room A is 7 days and in room B is 3 days.

I already try to use min and max but the result is not valid because in the data that customer in the end is back to room A again