This is some simple c# code that calculates a simple variance.