Calculate source.