solve (999/1000)^x = .5 for x