Seems like the "else" case could just be `whole` instead of `dollars + index`.