perfected the time ago calculation