Calculate solar energy