Use ceiling_fraction function instead of repeated explicit code to ceil calculations. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>