User:Nom/sandbox/templates/Template:A

Usage
Return a*3 + b