[Community puzzle] Hourglass

This topic is about the puzzle Hourglass.

Feel free to send your feedback or ask some help here!

I think that the puzzle description is too vague. It would be easier to grasp if noted that the answer does not depend at all on starting configuration of the grains in top and bottom halves, but only on number of grains in both. And of course on the provided seconds.