_Nothing_ takes 2 minutes, though! The context switching from whatever other thing you actually wanted to be focused on probably costs you at least 15-20 minutes. If it took you 16 hours of dev work to automate the process, it's only going to take you something like 50 invoices to recover your lost time when you account it that way. Seems like a great tradeoff to me. And reducing your own misery, is, of course, invaluable!