Apply a ratio only if mode max and date
Rename script