How to make fuction (Health) drop every second for 1?

I want to make that Hp be time that will constantly run out and if you pick something or finish mission you gain some Hp(time). How to do that?

Looking for same thing. I want to make this function for my webpage: transplant-israel. let me know if you got solution for this.