How to regenerate life after some timewithout taking damage

16bit I can look stupid butvim new on unreal engine and im only 13… The thing is that i dont understand how you calculate how manu time sincera i didnt get damaged… Help plz