interva_calc: removed non-standard 'typeof' operator