How are "Spent" and "Funded" amounts for a qube calculated?