Farmer turns post-harvest losses into profits