I have a piece of code, as below, where if a time is less than a value in a list of 5 times I want to insert the new value in the list and delete 5th value in the list, esse