Hello. In CoreData, the settings attribute stores a float value. How to use it for calculation? Here is the code to calculate:
///tMoney.settings это атрибут в сущности let mFWork = Float(((diffHour * 60 + diffMinute - breek) * tMoney.settings/60) - (((diffHour * 60 + diffMinute - breek) * tMoney.settings/60) * 13 / 100)) Xcode swears: Expression was complex to be solved in reasonable time; consider breaking up expressions