Dynamic Modeling Of Machinery Replacement Problems