money_format doesn't exist on windows and substitute

money_format is not available on windows systems so if os system is windows we use a replacement.
(Indentation corrections)