Hi Stefano,
as I wrote in the formula: hashFactor=24 stands for hours and 3600 stand for seconds per hour.
Regarding the blockReward you can take look at they have API for this. Moreover, blockReward for Dash is quite stable over time. I just saw one change since last July.
Best Regards,
Salvatore