Sounds like you're already there. With the amount remaining at the end of any month being 95% of the amount at the end of the previous month,

= 583,978, as you've computed. Relating that to the typical PV / FV equation, think of the 0.95 as (1 +r), whereis the -5% "growth" rate (rnegativegrowth, in this case).