This work in many scenarios, but if you have to deal with a calculation/formula that does not pair with an activity, it is not possible to do it.
However, it should be possible just using formulas as states here:
https://moodle.org/mod/forum/discuss.php?d=140915
Best,
(just responded to link to the solutions that took me a while )