New tool can help industry and consumers calculate and combat food waste.