New machinery isn't always a good investment. Here's how to evaluate it with numbers, without being guided by enthusiasm alone.