Guide to microwave weighting function calculations