Is there a way to conform a value to its equivalent in another interval, similar to the map() function in Arduino? For example, getting the time in an interval of 0-1440 minutes, and converting it to a value 0-255. Is there a function for that, or do I have to somehow do it manually?