Here is the first draft. Probably it could have been solved smarter but oh well, it works. The red fields can be edited, the others should be left alone. Amazing what happens when you play with the numbers. Suggestions appreciated!