Probably your solution is to do the SQL side logic with INSERT INTO SELECT :
INSERT INTO table2
SELECT * FROM table1
WHERE condition;
Your case I think it would be something like:
"INSERT INTO consumptions " . $Query
Where your query would perform the surging and mulitplicacin / division operations.
If you do not have the possibility to do everything from SQL, you should iterate over each of the records and insert them into the table (non-functional example):
$FilledINConsumptions= "INSERT INTO consumptions (idSimulation, idSAP, Component, WC_Family, Dates, Quantity)
VALUES ('$valores[0]'), ('$valores[1]'), ('$valores[2]'),..."