rvbd/bdp.py - BDP calculator