Calculate future investment value with flexible rate periods, compound frequencies, and regular contributions.