calculate minutes since login and return JSON