[fold] Wrap RippleCalc into a single function.