You have to understand the order of operations for Crystal Reports. Realistic speaking, at the page header, you have not read any values for that page yet, thus no data.
Try putting a WhilePrintingRecords in the formula (before any calculations. If that does not work. You may have to use a sub-report to do the calculation and put the sub-report in the report header.