Local density band approach to f-electron systems — heavy fermion superconductor UPt3