chiark / gitweb /
fix calculation of ends formula