add <cmath> to pageoffer_amounts.cpp