this seems like very simple maths but somehow, my brain cant think ...
i am trying to implement pagination and will need to calculate the item offset to use in limi
Use offset = (page - 1) * itemsPerPage + 1.
offset = (page - 1) * itemsPerPage + 1