Thanks for your response, Adam. What I want is this composable to move frontward or backward based on the starter hour. Assume it is 5, if the next hour 6, I want it to move 2.dp to the right and if is 4, 2.dp to the left, I want the number of dp to be cumulative. My idea was to calculate the offset by the difference between the hours, but I understand your point. I Will try to figure out a new approach to represent the state.