How to get total number of hours in time selection in kibana

#1

I have a time_stamp field in an index in ES. I want to calculate number of hours between time range selection available in kibana within the limits
min(time_Stamp) < time_selection_in_kibana < max(time_stamp)