C# Noob needs help with (i think) simple transformation of a function - C#