can create a trime entry, recalculate duration every time getDuration is called