How to calculate the result for the provided input?

The text that will be provided should not contain the number format and the operator should be identified as: "P for “+” addition “S” for “-” subtraction “M” for “*” multiplication “D” for “/” division

For example,
Input : 12|00|900.00 P 23|10|900.00
1st operand is 1200900.00
2nd operand is 2310900
The operator is “+” addition
The calculated result will be 3511800 and the output value should be in the format 35|11|800