API vs. SaaS: The Internal Tools Calculus When to buy the subscription and when to write forty lines of code instead.