How to show ticket time on the entity screens

In the holiday,our restaurant have the two hours limit for customer eating meals. We want to show the time that ticket be created on the entity screen,when the time’s up,the entity button will change the color.
How to do this?Thanks.