convert duration logged-in to minutes