added duration calculation logic for sidebar entries