Hooked up buy calculations