Add time decay function to the app