Regression formulae for ab initio and density functional calculated chemical shifts