implemented first draft for duration formatter