Scaling Health

Hello guys! How can I make a datapack that makes the mobs stronger as the day goes on. It's for our server. My plan is to take the current day, divide it by 4, and multiply that to any hostile mob's health. Also I'm aware about macros and stuff but I really don't know how to use them. Thanks!
Continue to help post