fix difftime formatter
fix kpi types