Implement pro rata

Resolve #87