I deliberately chose nice numbers like 4 and 8 so that it would come out to a square-root.
If you use a spreadsheet, then just slap the equation using Start Amount (N), Half-Life (H), and number of days (D) into the cell and let it take care of the rest. You could make cells which show the difference from the previous day. When you make a fresh injection, the fresh amount is just added to what is still in you, etc.
If you use the Windows calculator, switch it into Scientific mode from the 'View' option in the menubar. One of the functions is x^y. If you calculate the D/H and slap it into the memory (with MS), you can hit '2 x^y MR ='. Use MS to put that into the memory. Then do '500 / MR =' and you should get the 353.55.... I put the example numbers there so you could check your calculation was correct on a dry run.
The reason this works is that after each half-life period you have half the amount remaining. After another half-life you have half again. This leads us to an equation base on 1/2 multiplied by itself a number of times equal to the number of half-lives which have passed. It conveniently works for fractions but it just gets a bit messy to calculate. It can take a clear head to take it in.
The roid calculator website is very handy but it's good to be empowered to do your own spreadsheets.
Thanks for messing with my username.