Thanks for your reply but both those formulas give the wrong answer. Stock days should be a variable.