Text this: Calculating maximum theoretical yield in rice