calculate metrics on front page