lib: Proportions with flexible period