How is the amount of Fidyah calculated?

How is the amount of Fidyah calculated?

In general, the fidyah is calculated based on the following formula: (Days left) X (Multiply year) X (1 Cupak). However, the calculation of fidyah is different for each state.  In Selangor, the fidyah payment is calculated according to the method of multiplying the fidyah and kifarah by year or not multiplying the fidyah and kifarah payment rate