moved sample calculator out of wtools