harvest calculation