For farmers across the world, the cost of inputs such as seeds, water and fertilizer can be the difference between profit and loss in any given year.