Moved constants for calculating rent into method so they are calculated on the fly, not when the server starts