I took a variable $x and suppose the value of $x is 12. Now I want to decrease the value of $x by 1 in every 12 hours. I tried many ways to do it. But I have no idea how to do t