If I sell software to my customers that reduces their operational complexity by me investing some code, then I don't consider it a loss.