Use inject in the calc method

To avoid extra conditions.

Add test to the calc with no operations too.


Just some frufrus @matiasleidemer hahahah