Added functions for a new column 'duration' in balance_level_selection table (table 8)