Math utility for node