A company purchased a new machine for Rs5,00,000 and machine's test run was started to make sure that machine works properly. There was expense of Rs 5,000 incurred on test run, however the sale proceeds of test production were Rs 2,000. You are required to find out the total cost of machine?