SampleCalculator