Calculate asf duration

Fixes #57