add duration module
apply duration module into time_slots and appointment