You will get a syntax error if the Regional Settings in Windows Control panel (or in Mac System Preferences) have, e.g. £ instead of $ as the currency symbol. To avoid that, you can try something more like
{ SET myPrincipal { MERGEFIELD Principal }
}{ SET myPaid { MERGEFIELD Paid }
}{ SET myInterestRate { MERGEFIELD InterestRate }
}{ =(myPrincipal-myPaid) * myInterestRate * 0.01 /365 }
If you have mixed currencies, that may end up showing a currency symbol where the symbol matches the control panel setting, and a plain number where it doesn't. Adding a \#0.00 to the end of the { = } will probably fix that.