A similar solution to everyone else. This is my first challenge completed!
Due to difference in Input and Output file, I use output file for calculation. Just one formula tool with 4 different formulas
I used a single formula block with the formulas below:
Take a look.