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?