How is combined spoilage calculated?

If I make cook a food with an ingredient that is close to spoiling and one that is fresh, how is the finished product calculated?