Flexport Interview Question

Design an Open table. How to deal with the time interval.