A century before apps and spreadsheets, there was a Japanese budgeting system that still works today