Maybe use an array of intervals => their translated values to make the code shorter/easier to read