Cost management: planned vs actual (EV management)

Does GP calculate actual cost, related to the progress of a task?
To get the actual cost ¿is it as simple as TotalCost x %completeness?

The cost is a sum of (resource payment rate * resource load * task duration) for all assigned resources. No other costs are available in GP