Calculates which backups or logs to keep, given that you want to store at most X and want to maximize value