calculate_frecency determines frecency values for moz_places rows in Places. We should add performance tests to understand the impact of changes to the function, especially as we continue to evolve the algorithm. Differential Revision: https://phabricator.services.mozilla.com/D267276