For example in level 59, goal is to get 12 hearts.
You can see a green decreasing timing bar along with along the order.
The goal is to serve the order before that bar changes the color.
Once the line changes the color you'll lose the chance to get the heart from that customer.